<%--
功能：输出文章URL
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.content.service.ContentManager" %>
<%@ tag import="com.probiz.estore.common.model.content.Content" %>

<%@ attribute name="content" type="com.probiz.estore.common.model.content.Content" required="true" description="文章"%>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	ContentManager contentManager = (ContentManager) ctx.getBean("contentManager");
	String uri = contentManager.getUriByContent(content);
	out.print(application.getAttribute("ctxPath")+uri);
%>

